FROM python:3.11.2-alpine3.17

WORKDIR /python_project/asyncio_game
ADD . /python_project/asyncio_game

ARG I_Url=https://mirrors.aliyun.com/pypi/simple/

RUN pip install --upgrade pip -i $I_Url &&  \
    pip install -r ./requirements.txt -i $I_Url

EXPOSE 8001

CMD ["python", "gateway_main.py"]